public class Son extends Father{
    public void sleep(){
        System.out.println("熬夜");
    }

    public void eat(int n){
        System.out.println("吃" + n + "碗");
    }

    public void play(){
        System.out.println("玩游戏");
    }

    public static void main(String[] args) {
        Father son = new Son();
        son.print();
        son.eat();
//        son.eat(2);
        son.sleep();
//        son.play();
        Son s = new Son();
        s.print();
        s.eat();
        s.eat(2);
        s.sleep();
        s.play();
    }
}
